package com.xizi.forum.dao;

import com.xizi.forum.model.MessageInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageInfoMapper {
    int insert(MessageInfo record);

    int insertSelective(MessageInfo record);

    MessageInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MessageInfo record);

    int updateByPrimaryKey(MessageInfo record);

    Long selectUnreadCount(Long id);

    List<MessageInfo> selectAllMessageByUserId(Long id);
}